<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\email\model\Email | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.email.model.html" title="Summary of application\modules\email\model"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li class="active">
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-application.modules.email.model.Email.html">Email</a></li>
				<li><a href="class-application.modules.email.model.EmailBody.html">EmailBody</a></li>
				<li><a href="class-application.modules.email.model.EmailFolder.html">EmailFolder</a></li>
				<li><a href="class-application.modules.email.model.EmailWeb.html">EmailWeb</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Email</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CActiveRecord
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.model.Model.html"><span>application\core\model\Model</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\modules\email\model\Email</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.email.html">email</a>\<a href="namespace-application.modules.email.model.html">model</a><br>
		

				<b>Copyright:</b>
				2008-2014 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/modules/email/model/Email.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="model" id="_model">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_model">#</a>
			<code>model( <span> <var>$className</var> = __CLASS__ </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="tableName" id="_tableName">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_tableName">#</a>
			<code>tableName( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="fetchPrev" id="_fetchPrev">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchPrev">#</a>
			<code>fetchPrev( <span>integer <var>$id</var></span>, <span>integer <var>$uid</var></span>, <span>integer <var>$fid</var></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>获取上一封邮件</p>
			</div>

			<div class="description detailed hidden">
				<p>获取上一封邮件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd>当前邮件ID</dd>
						<dt><var>$uid</var></dt>
						<dd>当前用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchNext" id="_fetchNext">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchNext">#</a>
			<code>fetchNext( <span>integer <var>$id</var></span>, <span>integer <var>$uid</var></span>, <span>integer <var>$fid</var></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>获取下一封邮件</p>
			</div>

			<div class="description detailed hidden">
				<p>获取下一封邮件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd>当前邮件ID</dd>
						<dt><var>$uid</var></dt>
						<dd>当前用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchById" id="_fetchById">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchById">#</a>
			<code>fetchById( <span>integer <var>$id</var></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>查找一条完整的email数据</p>
			</div>

			<div class="description detailed hidden">
				<p>查找一条完整的email数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd>邮件索引ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllBodyIdByKeywordFromAttach" id="_fetchAllBodyIdByKeywordFromAttach">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllBodyIdByKeywordFromAttach">#</a>
			<code>fetchAllBodyIdByKeywordFromAttach( <span> <var>$keyword</var></span>, <span> <var>$whereAdd</var> = <span class="php-quote">'1'</span></span>, <span> <var>$queryArchiveId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="setAllRead" id="_setAllRead">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setAllRead">#</a>
			<code>setAllRead( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>设置指定$uid的邮件为已读</p>
			</div>

			<div class="description detailed hidden">
				<p>设置指定$uid的邮件为已读</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>更新的行数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setRead" id="_setRead">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setRead">#</a>
			<code>setRead( <span>integer <var>$id</var></span> )</code>

			<div class="description short">
				<p>设置指定id的邮件为已读</p>
			</div>

			<div class="description detailed hidden">
				<p>设置指定id的邮件为已读</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>更新的行数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setField" id="_setField">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setField">#</a>
			<code>setField( <span>string <var>$field</var></span>, <span>mixed <var>$value</var></span>, <span>string <var>$conditions</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>更新email表字段值</p>
			</div>

			<div class="description detailed hidden">
				<p>更新email表字段值</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$field</var></dt>
						<dd>字段名</dd>
						<dt><var>$value</var></dt>
						<dd>字段值</dd>
						<dt><var>$conditions</var></dt>
						<dd>更新条件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>更新的行数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="send" id="_send">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_send">#</a>
			<code>send( <span>integer <var>$bodyId</var></span>, <span>array <var>$bodyData</var></span>, <span>integer <var>$inboxId</var> = application\modules\email\model\BaseController::INBOX_ID</span>, <span> <var>$threadId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>发送邮件</p>
			</div>

			<div class="description detailed hidden">
				<p>发送邮件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$bodyId</var></dt>
						<dd>邮件主体ID</dd>
						<dt><var>$bodyData</var></dt>
						<dd>邮件主体</dd>
						<dt><var>$inboxId</var></dt>
						<dd>收件箱ID</dd>
						<dt><var>$threadId</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="recall" id="_recall">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_recall">#</a>
			<code>recall( <span> <var>$emailIds</var></span>, <span> <var>$uid</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="completelyDelete" id="_completelyDelete">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_completelyDelete">#</a>
			<code>completelyDelete( <span>array <var>$emailIds</var></span>, <span> <var>$uid</var></span>, <span> <var>$archiveId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>彻底删除邮件及其主体</p>
			</div>

			<div class="description detailed hidden">
				<p>彻底删除邮件及其主体</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$emailIds</var></dt>
						<dd></dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
						<dt><var>$archiveId</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>删除条数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllEmailIdsByFolderId" id="_fetchAllEmailIdsByFolderId">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllEmailIdsByFolderId">#</a>
			<code>fetchAllEmailIdsByFolderId( <span>integer <var>$fid</var></span>, <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>根据文件夹id和uid获取邮件ID</p>
			</div>

			<div class="description detailed hidden">
				<p>根据文件夹id和uid获取邮件ID</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fid</var></dt>
						<dd>文件夹</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>邮件ID数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByArchiveIds" id="_fetchAllByArchiveIds">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByArchiveIds">#</a>
			<code>fetchAllByArchiveIds( <span>string <var>$field</var> = <span class="php-quote">'*'</span></span>, <span>mixed <var>$conditions</var> = <span class="php-quote">''</span></span>, <span> <var>$archiveId</var> = <span class="php-num">0</span></span>, <span> <var>$tableAlias</var> = <span class="php-keyword1">array</span>( <span class="php-quote">'e'</span>, <span class="php-quote">'eb'</span> )</span>, <span> <var>$offset</var> = <span class="php-keyword1">null</span></span>, <span> <var>$length</var> = <span class="php-keyword1">null</span></span>, <span> <var>$order</var> = SORT_DESC</span>, <span> <var>$sort</var> = <span class="php-quote">'sendtime'</span> </span> )</code>

			<div class="description short">
				<p>根据条件搜索指定的一个或者多个邮件表中的邮件</p>
			</div>

			<div class="description detailed hidden">
				<p>根据条件搜索指定的一个或者多个邮件表中的邮件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$field</var></dt>
						<dd>$conditions</dd>
						<dt><var>$conditions</var></dt>
						<dd>$tids 表ID [int][array]</dd>
						<dt><var>$archiveId</var></dt>
						<dd></dd>
						<dt><var>$tableAlias</var></dt>
						<dd></dd>
						<dt><var>$offset</var></dt>
						<dd></dd>
						<dt><var>$length</var></dt>
						<dd></dd>
						<dt><var>$order</var></dt>
						<dd></dd>
						<dt><var>$sort</var></dt>
						<dd></dd>
					</dl></div>



					<h4>Author</h4>
					<div class="list">
							denglh<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByListParam" id="_fetchAllByListParam">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByListParam">#</a>
			<code>fetchAllByListParam( <span>string <var>$operation</var></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span></span>, <span>integer <var>$fid</var> = <span class="php-num">0</span></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span></span>, <span>integer <var>$limit</var> = <span class="php-num">10</span></span>, <span>integer <var>$offset</var> = <span class="php-num">0</span></span>, <span> <var>$subOp</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>根据列表查询参数获得列表数据</p>
			</div>

			<div class="description detailed hidden">
				<p>根据列表查询参数获得列表数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$operation</var></dt>
						<dd>列表动作</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$limit</var></dt>
						<dd>条数</dd>
						<dt><var>$offset</var></dt>
						<dd>当前页</dd>
						<dt><var>$subOp</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countUnreadByListParam" id="_countUnreadByListParam">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countUnreadByListParam">#</a>
			<code>countUnreadByListParam( <span>string <var>$operation</var></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span></span>, <span>integer <var>$fid</var> = <span class="php-num">0</span></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span></span>, <span> <var>$subOp</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>根据列表数据获取指定动作未读邮件数</p>
			</div>

			<div class="description detailed hidden">
				<p>根据列表数据获取指定动作未读邮件数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$operation</var></dt>
						<dd>列表动作</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$subOp</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>统计数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countByListParam" id="_countByListParam">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countByListParam">#</a>
			<code>countByListParam( <span>string <var>$operation</var></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span></span>, <span>integer <var>$fid</var> = <span class="php-num">0</span></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span></span>, <span> <var>$subOp</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>根据列表查询参数统计总数</p>
			</div>

			<div class="description detailed hidden">
				<p>根据列表查询参数统计总数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$operation</var></dt>
						<dd>列表动作</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$subOp</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>统计数
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getListParam" id="_getListParam">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getListParam">#</a>
			<code>getListParam( <span>string <var>$operation</var></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span></span>, <span>integer <var>$fid</var> = <span class="php-num">0</span></span>, <span>integer <var>$archiveId</var> = <span class="php-num">0</span></span>, <span> <var>$getUnread</var> = <span class="php-keyword1">false</span></span>, <span> <var>$subOp</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>获取列表查询参数</p>
			</div>

			<div class="description detailed hidden">
				<p>获取列表查询参数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$operation</var></dt>
						<dd>列表动作</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$fid</var></dt>
						<dd>文件夹ID</dd>
						<dt><var>$archiveId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$getUnread</var></dt>
						<dd></dd>
						<dt><var>$subOp</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>列表查询参数数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="moveByBodyId" id="_moveByBodyId">

			<td class="attributes"><code>
				 public 
				boolean|integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_moveByBodyId">#</a>
			<code>moveByBodyId( <span>array <var>$emailids</var></span>, <span>integer <var>$source</var></span>, <span>integer <var>$target</var></span> )</code>

			<div class="description short">
				<p>debug</p>
			</div>

			<div class="description detailed hidden">
				<p>debug</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$emailids</var></dt>
						<dd></dd>
						<dt><var>$source</var></dt>
						<dd></dd>
						<dt><var>$target</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean|integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchTableIds" id="_fetchTableIds">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchTableIds">#</a>
			<code>fetchTableIds( )</code>

			<div class="description short">
				<p>获取所有存档表的id</p>
			</div>

			<div class="description detailed hidden">
				<p>获取所有存档表的id</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSplitSearchContdition" id="_getSplitSearchContdition">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSplitSearchContdition">#</a>
			<code>getSplitSearchContdition( <span>type <var>$conditions</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$conditions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countBySplitCondition" id="_countBySplitCondition">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countBySplitCondition">#</a>
			<code>countBySplitCondition( <span>integer <var>$tableId</var></span>, <span>string <var>$conditions</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>统计分表存档时的数据条数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计分表存档时的数据条数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$conditions</var></dt>
						<dd>附加条件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>统计数目
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllBySplitCondition" id="_fetchAllBySplitCondition">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllBySplitCondition">#</a>
			<code>fetchAllBySplitCondition( <span>integer <var>$tableId</var></span>, <span>string <var>$conditions</var> = <span class="php-quote">''</span></span>, <span>integer <var>$offset</var> = <span class="php-keyword1">null</span></span>, <span>integer <var>$limit</var> = <span class="php-keyword1">null</span> </span> )</code>

			<div class="description short">
				<p>查找分表存档的数据列表</p>
			</div>

			<div class="description detailed hidden">
				<p>查找分表存档的数据列表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableId</var></dt>
						<dd>存档表ID</dd>
						<dt><var>$conditions</var></dt>
						<dd>附加条件</dd>
						<dt><var>$offset</var></dt>
						<dd>页数</dd>
						<dt><var>$limit</var></dt>
						<dd>每页多少条</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>列表数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTableName" id="_getTableName">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTableName">#</a>
			<code>getTableName( <span>integer <var>$tableId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>根据存档表id获取存档表名</p>
			</div>

			<div class="description detailed hidden">
				<p>根据存档表id获取存档表名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableId</var></dt>
						<dd>存档表id</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTableStatus" id="_getTableStatus">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTableStatus">#</a>
			<code>getTableStatus( <span>integer <var>$tableId</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>获取指定存档表的状态</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定存档表的状态</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableId</var></dt>
						<dd>存档表id</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="dropTable" id="_dropTable">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_dropTable">#</a>
			<code>dropTable( <span>integer <var>$tableId</var></span>, <span>boolean <var>$force</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>删除表</p>
			</div>

			<div class="description detailed hidden">
				<p>删除表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tableId</var></dt>
						<dd>存档表id</dd>
						<dt><var>$force</var></dt>
						<dd>强制删除</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>删除成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createTable" id="_createTable">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createTable">#</a>
			<code>createTable( <span>integer <var>$maxTableId</var></span> )</code>

			<div class="description short">
				<p>创建一个表</p>
			</div>

			<div class="description detailed hidden">
				<p>创建一个表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$maxTableId</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-application.core.model.Model.html#methods">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#_add">add()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_beforeDelete">beforeDelete()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_create">create()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_deleteByPk">deleteByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetch">fetch()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAll">fetchAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByAttributes">fetchAllByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByPk">fetchAllByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllSortByPk">fetchAllSortByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByAttributes">fetchByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByPk">fetchByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCache">fetchCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCaches">fetchCaches()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getCacheKey">getCacheKey()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getIsAllowCache">getIsAllowCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getMaxId">getMaxId()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getModelClass">getModelClass()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_init">init()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_modify">modify()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_remove">remove()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateAll">updateAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateByPk">updateByPk()</a></code>
			</p>
		</div>










		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-application.core.model.Model.html#properties">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#$allowCache"><var>$allowCache</var></a></code>, 
				<code><a href="class-application.core.model.Model.html#$cacheLife"><var>$cacheLife</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
